﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace exercice1
    {
    struct PlatDuJour
        {
        public PlatDuJour(String entree, String platPrincipal, Jour jourDeLaSemaine, double prix)
            {
            this.m_strEntree = entree;
            this.m_strPlatPrincipal = platPrincipal;
            this.m_strJourDeLaSemaine = jourDeLaSemaine;
            this.m_dPrix = prix;
            }

        public override String ToString()
            {
            StringBuilder str = new StringBuilder();
            str.Append(String.Format("{0}", this.m_strJourDeLaSemaine) + ":\t");
            str.Append(this.m_strPlatPrincipal + ", ");
            str.Append(this.m_strEntree + "\n");
            str.Append("Prix : " + String.Format("{0:C2}", this.m_dPrix));
            return str.ToString();
            }

        private String m_strEntree;
        private String m_strPlatPrincipal;
        private Jour m_strJourDeLaSemaine;
        private double m_dPrix;
        }
    }
